from django.urls import path
from demo import views

urlpatterns = [
    path('index/', views.index, name='index'),
    # path('test1/<str:in>/', views.test1),
    path('test1/<int:in>/', views.test1),
    path('nav/<str:classes>/', views.nav),
    path('404/', views.not_found, name='not_found'),
    path('save/', views.save_info, name='save'),
    path('article/add/', views.AddArticleView.as_view(), name='add'),
    path('article/<int:id>/', views.ArticleDetailView.as_view(), name='article_detail'),
    path('article/user/', views.ArticleUserView.as_view(), name='article_user'),
    path('article/update/<int:id>/', views.ArticleUpdateView.as_view(), name='article_update'),
    path('article/delete/<int:id>/', views.ArticleDeleteView.as_view(), name='article_delete'),
]